/* Test Cases By
Judy Lu and Oluwakemi Dawodu
 2/21/11 */

# include "processtest.h"
#include <fstream>

bool Processtest::processtest(char* file)
{
	if(!file || (strcmp(file,".cpp") != 0 && strcmp(file,".h") != 0))
	{
	   return  false;
	}
	return true;
}
bool Processtest::directorytest(char[]file,int size)
{
	ifstream i;
	i.open (file);
	if(i==NULL) 
	{
		return false;
	}
	return true;
}
	
bool Processtest::filetest(HANDLE hsearch,WIN32_FIND_DATA fd)
{
	if(!FindNextFile(hSearch,&fd))
		{
		if(ERROR_NO_MORE_FILES == GetLastError())
			{
				return true;
			}
		}
	return false;
}